package code08_三大特征;

public class Test02_对象属性 {
	public static void main(String[] args) {
		Account account = new Account();
		account.setName("tom");
		account.setAge(27);
		account.setPhone("138888888888");
		
		Address address = new Address("江苏省", "南京", "秦淮区", "龙蟠中路径 458号");
		account.setAddress(address);
		
		System.out.println("姓名："+account.getName());
		System.out.println("电话："+account.getPhone());
		// Address a = account.getAddress();
		// a.getCity()
		System.out.println("城市："+account.getAddress().getCity());
		System.out.println("区域："+account.getAddress().getDistrict());
		
	}
}

